forked from Uninett/nav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.mk
34 lines (31 loc) · 1.19 KB
/
common.mk
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
# Common NAV make file rules
edit = $(SED) \
-e 's|@VERSION[@]|$(VERSION)|g' \
-e 's|@bindir[@]|$(bindir)|g' \
-e 's|@crondir[@]|$(crondir)|g' \
-e 's|@djangotmpldir[@]|$(djangotmpldir)|g' \
-e 's|@docdir[@]|$(docdir)|g' \
-e 's|@exec_prefix[@]|$(exec_prefix)|g' \
-e 's|@imagedir[@]|$(imagedir)|g' \
-e 's|@initdir[@]|$(initdir)|g' \
-e 's|@javalibdir[@]|$(javalibdir)|g' \
-e 's|@javascriptdir[@]|$(javascriptdir)|g' \
-e 's|@libdir[@]|$(libdir)|g' \
-e 's|@localstatedir[@]|$(localstatedir)|g' \
-e 's|@nav_user[@]|$(nav_user)|g' \
-e 's|@prefix[@]|$(prefix)|g' \
-e 's|@pythondir[@]|$(pythondir)|g' \
-e 's|@pythonlibdir[@]|$(pythonlibdir)|g' \
-e 's|@stylesheetdir[@]|$(stylesheetdir)|g' \
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
-e 's|@tooldir[@]|$(tooldir)|g' \
-e 's|@datadir[@]|$(datadir)|g' \
-e 's|@webrootdir[@]|$(webrootdir)|g'
CLEANFILES = $(EDITFILES)
$(EDITFILES): Makefile
rm -f $@ [email protected]
srcdir=''; \
test -f ./[email protected] || srcdir=$(srcdir)/; \
$(edit) $${srcdir}[email protected] >[email protected]
mv [email protected] $@
$(EDITFILES): %: $(srcdir)/%.in