Skip to content

Commit

Permalink
use DISTCLEANFILES and 'g' for 'sed'
Browse files Browse the repository at this point in the history
  • Loading branch information
kaysievers committed Apr 30, 2009
1 parent 3a093ba commit 07f2d3c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@ EXTRA_DIST = \
update-usbids.sh.in \
lsusb.8.in

update-usbids.sh: update-usbids.sh.in
sed 's|@usbids@|$(datadir)/usb.ids|' $< >$@
update-usbids.sh: $(srcdir)/update-usbids.sh.in
sed 's|@usbids@|$(datadir)/usb.ids|g' $< >$@
chmod 755 $@

lsusb.8: lsusb.8.in
sed 's|@usbids@|$(datadir)/usb.ids|' $< >$@
lsusb.8: $(srcdir)/lsusb.8.in
sed 's|@usbids@|$(datadir)/usb.ids|g' $< >$@

usb.ids.gz: usb.ids
gzip -c -9 usb.ids > usb.ids.gz

clean-local:
rm -f usb.ids.gz
rm -f lsusb.8
rm -f update-usbids.sh
DISTCLEANFILES = \
usb.ids.gz \
lsusb.8 \
update-usbids.sh

distclean-local:
rm -rf autom4te.cache
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ echo "
=============

prefix: ${prefix}
datadir: ${datadir}
datarootdir: ${datarootdir}
datadir: ${datadir}
mandir: ${mandir}

usb.ids: ${datadir}/usb.ids
Expand Down

0 comments on commit 07f2d3c

Please sign in to comment.