forked from lldpd/lldpd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedit.am
19 lines (18 loc) · 771 Bytes
/
edit.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
edit = $(SED) \
-e 's|@bindir[@]|$(bindir)|g' \
-e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \
-e 's|@libdir[@]|$(libdir)|g' \
-e 's|@includedir[@]|$(includedir)|g' \
-e 's|@exec_prefix[@]|$(exec_prefix)|g' \
-e 's|@prefix[@]|$(prefix)|g' \
-e 's|@VERSION[@]|$(VERSION)|g' \
-e 's|@PACKAGE[@]|$(PACKAGE)|g' \
-e 's|@PACKAGE_NAME[@]|$(PACKAGE_NAME)|g' \
-e 's|@PACKAGE_URL[@]|$(PACKAGE_URL)|g' \
-e 's|@PRIVSEP_USER[@]|$(PRIVSEP_USER)|g' \
-e 's|@PRIVSEP_GROUP[@]|$(PRIVSEP_GROUP)|g' \
-e 's|@PRIVSEP_CHROOT[@]|$(PRIVSEP_CHROOT)|g' \
-e 's|@LLDPD_CTL_SOCKET[@]|$(LLDPD_CTL_SOCKET)|g'
$(TEMPLATES): Makefile
$(AM_V_GEN)$(edit) $(srcdir)/[email protected] > [email protected]
mv [email protected] $@