diff options
author | Benjamin Drung <bdrung@ubuntu.com> | 2010-01-07 20:07:06 +0100 |
---|---|---|
committer | Benjamin Drung <bdrung@ubuntu.com> | 2010-01-07 20:07:06 +0100 |
commit | 83ce1dd2ab5aab381e7e494bd0d96f4962fbc4ee (patch) | |
tree | 667a2205530afe9ce252eaf52c9506bfbde24ca3 /src | |
parent | 65906c85d02b8a5efd42caddfeac101fac0deed6 (diff) |
Make vendor detection more robust (use dpkg-vendor instead of lsb_release).
- update src/Makefile
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index ffb3e49..4ced5c7 100644 --- a/src/Makefile +++ b/src/Makefile @@ -23,6 +23,8 @@ MANDIR ?= $(PREFIX)/share/man DATADIR = $(PREFIX)/share/mozilla-devscripts +VENDOR := $(shell if dpkg-vendor --is Ubuntu || dpkg-vendor --derives-from Ubuntu; then echo "Ubuntu"; else echo "Debian"; fi) + subst_files = \ firefox-3.0.mk \ firefox-3.0-full.mk \ @@ -92,7 +94,7 @@ install: $(subst_files) $(extra_files) $(foreach dir,$(extra_dirs),$(wildcard $( done find $(DESTDIR)$(DATADIR) -type f \( -name \*.pl -o -name \*.sh \) -exec chmod -v 755 {} \; chmod 755 $(DESTDIR)$(DATADIR)/minefield-packager.mk - install -m 644 xul-app-data.csv.$(shell lsb_release -si) $(DESTDIR)$(DATADIR)/xul-app-data.csv + install -m 644 xul-app-data.csv.$(VENDOR) $(DESTDIR)$(DATADIR)/xul-app-data.csv mkdir -p $(DESTDIR)/usr/share/perl5/Debian/Debhelper/Sequence install -m 644 xul-ext.pm $(DESTDIR)/usr/share/perl5/Debian/Debhelper/Sequence/xul_ext.pm |