- $(AM_V_GEN)(cd /var/tmp && rm -rf elogind-$(VERSION) && $(MKDIR_P) elogind-$(VERSION) && \
- for f in `find elogind-$(VERSION)-raw/ -type f | cut -d '/' -f 2-` ; do \
- $(MKDIR_P) elogind-$(VERSION)/`dirname $$f` ; \
- $(AWK) 'BEGIN { i=0;e=0 } \
- /^#if\s+0.*elogind.*$$/ { i=1;next } \
- /^#else\s*$$/ { \
- { if ( i==1 ) e=1; else print }{next} \
- } \
- /^#endif\s*\/\/\s*0\s*$$/ { \
- { if ( i==1 ) { i=0;e=0 } else print }{next} \
- } \
- /^\s*\/\/\/.*elogind.*$$/{ next } \
- /^\s*\/\/\s*#include.+$$/{ next } \
- { if ( (i==0) || (e==1) ) print }' \
- elogind-$(VERSION)-raw/$$f \
- > elogind-$(VERSION)/$$f ; \
- chmod `stat -c '%a' elogind-$(VERSION)-raw/$$f` \
- elogind-$(VERSION)/$$f ; \
- done ; \
- for l in `find elogind-$(VERSION)-raw/ -type l | cut -d '/' -f 2-` ; do \
- $(MKDIR_P) elogind-$(VERSION)/`dirname $$l` ; \
- cp -P elogind-$(VERSION)-raw/$$l elogind-$(VERSION)/$$l ; \
- done ; \
- tar czf elogind-$(VERSION).tar.gz elogind-$(VERSION) ; \
- rm -rf elogind-$(VERSION) elogind-$(VERSION)-raw) ; \
- $(AM_V_at)mv /var/tmp/elogind-$(VERSION).tar.gz ./
+ $(AM_V_GEN)(cd /var/tmp && \
+ rm -rf elogind-$(PACKAGE_VERSION) && \
+ $(MKDIR_P) elogind-$(PACKAGE_VERSION) && \
+ for f in `find elogind-$(PACKAGE_VERSION)-raw/ -type f | \
+ cut -d '/' -f 2-` ; do \
+ $(MKDIR_P) elogind-$(PACKAGE_VERSION)/`dirname $$f` ; \
+ $(AWK) 'BEGIN { i=0;e=0 } \
+ /^#if\s+0.*elogind.*$$/ { i=1;next } \
+ /^#else\s*$$/ { \
+ { if ( i==1 ) e=1; else print }{next} \
+ } \
+ /^#endif\s*\/\/\s*0\s*$$/ { \
+ { if ( i==1 ) { i=0;e=0 } else print }{next} \
+ } \
+ /^\s*\/\/\/.*elogind.*$$/{ next } \
+ /^\s*\/\/\s*#include.+$$/{ next } \
+ { if ( (i==0) || (e==1) ) print }' \
+ elogind-$(PACKAGE_VERSION)-raw/$$f \
+ > elogind-$(PACKAGE_VERSION)/$$f ; \
+ chmod `stat -c '%a' elogind-$(PACKAGE_VERSION)-raw/$$f` \
+ elogind-$(PACKAGE_VERSION)/$$f ; \
+ done ; \
+ for l in `find elogind-$(PACKAGE_VERSION)-raw/ -type l | \
+ cut -d '/' -f 2-` ; do \
+ $(MKDIR_P) elogind-$(PACKAGE_VERSION)/`dirname $$l` ; \
+ cp -P elogind-$(PACKAGE_VERSION)-raw/$$l \
+ elogind-$(PACKAGE_VERSION)/$$l ; \
+ done ; \
+ tar czf elogind-$(PACKAGE_VERSION).tar.gz elogind-$(PACKAGE_VERSION) ; \
+ rm -rf elogind-$(PACKAGE_VERSION) elogind-$(PACKAGE_VERSION)-raw) ; \
+ $(AM_V_at)mv /var/tmp/elogind-$(PACKAGE_VERSION).tar.gz ./