Code

Removed unnecessary occurrences of $(CURDIR) in rules.
authorSebastian Harl <sh@tokkee.org>
Wed, 2 May 2007 07:45:37 +0000 (09:45 +0200)
committerSebastian Harl <sh@tokkee.org>
Wed, 2 May 2007 07:45:37 +0000 (09:45 +0200)
debian/rules

index 7c4fe95ab6313458c2f0cca707481a6e751b4ebd..c5f1ca9e46688a9a00ee80f9d7f1538022a8cab3 100755 (executable)
@@ -63,7 +63,7 @@ install-indep:
        dh_clean -k
        dh_installdirs -i
        
-       include_dir=$(CURDIR)/debian/collectd-dev/usr/include/collectd/ \
+       include_dir=debian/collectd-dev/usr/include/collectd/ \
                && mkdir -p $$include_dir \
                && cp src/*.h $$include_dir
 
@@ -75,17 +75,16 @@ install-arch: build
        
        $(MAKE) install DESTDIR=$(CURDIR)/debian/collectd
        
-       rm -f $(CURDIR)/debian/collectd/usr/lib/collectd/*.la
+       rm -f debian/collectd/usr/lib/collectd/*.la
        
-       rm -f $(CURDIR)/debian/collectd/etc/collectd.conf
-       install -D -m 0644 $(CURDIR)/debian/collectd.conf \
-               $(CURDIR)/debian/collectd/etc/collectd/collectd.conf
+       rm -f debian/collectd/etc/collectd.conf
+       install -D -m 0644 debian/collectd.conf \
+               debian/collectd/etc/collectd/collectd.conf
        
        for PLUGIN in apache dns mysql perl ping sensors; do \
-               plugin_dir=$(CURDIR)/debian/collectd-$$PLUGIN/usr/lib/collectd/; \
+               plugin_dir=debian/collectd-$$PLUGIN/usr/lib/collectd/; \
                mkdir -p $$plugin_dir; \
-               mv $(CURDIR)/debian/collectd/usr/lib/collectd/$$PLUGIN.so \
-                       $$plugin_dir; \
+               mv debian/collectd/usr/lib/collectd/$$PLUGIN.so $$plugin_dir; \
        done
        
        mkdir -p debian/collectd/usr/lib/collectd/utils/