-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (37 loc) · 1.07 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
include src/Makefile.inc
all: $(PROGRAMNAME)
# cd src; make
# cp src/$(PROGRAMNAME) .
$(PROGRAMNAME): src/rhapsody
cp src/$(PROGRAMNAME) .
src/rhapsody:
cd src; make
install: $(PROGRAMNAME)
mkdir -p $(INSTALLPATH)
mkdir -p $(INSTDOCSPATH)
mkdir -p $(INSTDOCSPATH)/help
cp $(PROGRAMNAME) $(INSTALLPATH)
cp docs/* $(INSTDOCSPATH)
cp help/*.hlp $(INSTDOCSPATH)/help
clean:
cd src; make clean
rm -f $(PROGRAMNAME)
src/Makefile.inc:
./configure
tar:
rm -rf rhapsody-$(PROGRAMVER)
mkdir -p rhapsody-$(PROGRAMVER)/src
mkdir -p rhapsody-$(PROGRAMVER)/help
mkdir -p rhapsody-$(PROGRAMVER)/docs
cp src/*.c rhapsody-$(PROGRAMVER)/src
cp src/*.h rhapsody-$(PROGRAMVER)/src
cp src/Makefile rhapsody-$(PROGRAMVER)/src
rm -f src/autodefs.h
cp help/*.hlp rhapsody-$(PROGRAMVER)/help
cp docs/* rhapsody-$(PROGRAMVER)/docs
cp Makefile rhapsody-$(PROGRAMVER)
cp configure rhapsody-$(PROGRAMVER)
cp README rhapsody-$(PROGRAMVER)
tar -cf rhapsody_$(PROGRAMVER).tar rhapsody-$(PROGRAMVER)
gzip -c rhapsody_$(PROGRAMVER).tar > rhapsody_$(PROGRAMVER).tgz
rm -f rhapsody_$(PROGRAMVER).tar