blob: 8215e56fd23798aa28624468e218a8f2525bae65 (
plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
--- Makefile.linux.orig 2020-03-15 00:26:34 UTC
+++ Makefile.linux
@@ -29,37 +29,41 @@
.phony: default all openctm toolset documentation install clean
default: openctm toolset
+all: openctm
all: openctm toolset documentation
clean:
cd lib && $(MAKE) -f Makefile.linux clean && cd ..
cd tools && $(MAKE) -f Makefile.linux clean && cd ..
- cd doc && $(MAKE) -f Makefile.linux clean && cd ..
+# cd doc && $(MAKE) -f Makefile.linux clean && cd ..
openctm:
- cd lib && $(MAKE) -f Makefile.linux -j2 && cd ..
+ cd lib && $(MAKE) -f Makefile.linux && cd ..
toolset:
- cd tools && $(MAKE) -f Makefile.linux -j2 && cd ..
+ cd tools && $(MAKE) -f Makefile.linux && cd ..
documentation:
- cd doc && $(MAKE) -f Makefile.linux -j2 && cd ..
+# cd doc && $(MAKE) -f Makefile.linux && cd ..
# Installation settings
-LIBDIR = /usr/lib/
-INCDIR = /usr/local/include/
-BINDIR = /usr/local/bin/
-MAN1DIR = /usr/local/share/man/man1/
+PREFIX = %%LOCALBASE%%
+STAGEDIR = %%STAGEDIR%%
+
+LIBDIR = $(PREFIX)/lib/
+INCDIR = $(PREFIX)/include/
+BINDIR = $(PREFIX)/bin/
+MAN1DIR = $(PREFIX)/man/man1/
CP = cp
MKDIR = mkdir -p
install:
- $(CP) lib/libopenctm.so $(LIBDIR)
- $(CP) lib/openctm.h $(INCDIR)
- $(CP) lib/openctmpp.h $(INCDIR)
- $(CP) tools/ctmconv $(BINDIR)
- $(CP) tools/ctmviewer $(BINDIR)
- $(MKDIR) $(MAN1DIR)
- $(CP) doc/ctmconv.1 $(MAN1DIR)
- $(CP) doc/ctmviewer.1 $(MAN1DIR)
+ $(CP) lib/libopenctm.so $(STAGEDIR)/$(LIBDIR)
+ $(CP) lib/openctm.h $(STAGEDIR)/$(INCDIR)
+ $(CP) lib/openctmpp.h $(STAGEDIR)/$(INCDIR)
+ $(CP) tools/ctmconv $(STAGEDIR)/$(BINDIR)
+ $(CP) tools/ctmviewer $(STAGEDIR)/$(BINDIR)
+ $(MKDIR) $(STAGEDIR)/$(MAN1DIR)
+ $(CP) doc/ctmconv.1 $(STAGEDIR)/$(MAN1DIR)
+ $(CP) doc/ctmviewer.1 $(STAGEDIR)/$(MAN1DIR)
|