install without USER and GROUP
like in libtommath. really more friendly for packaging.
This commit is contained in:
parent
912eff4949
commit
5d5694dbc4
18
makefile
18
makefile
@ -261,19 +261,19 @@ install: library docs
|
|||||||
else
|
else
|
||||||
install: library
|
install: library
|
||||||
endif
|
endif
|
||||||
install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
|
install -d $(DESTDIR)$(LIBPATH)
|
||||||
install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
|
install -d $(DESTDIR)$(INCPATH)
|
||||||
install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(DATAPATH)
|
install -d $(DESTDIR)$(DATAPATH)
|
||||||
install -g $(GROUP) -o $(USER) $(LIBNAME) $(DESTDIR)$(LIBPATH)
|
install -m 644 $(LIBNAME) $(DESTDIR)$(LIBPATH)
|
||||||
install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)
|
install -m 644 $(HEADERS) $(DESTDIR)$(INCPATH)
|
||||||
ifndef NODOCS
|
ifndef NODOCS
|
||||||
install -g $(GROUP) -o $(USER) doc/crypt.pdf $(DESTDIR)$(DATAPATH)
|
install -m 644 doc/crypt.pdf $(DESTDIR)$(DATAPATH)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
install_test: testprof/$(LIBTEST)
|
install_test: testprof/$(LIBTEST)
|
||||||
install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
|
install -d $(DESTDIR)$(LIBPATH)
|
||||||
install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
|
install -d $(DESTDIR)$(INCPATH)
|
||||||
install -g $(GROUP) -o $(USER) testprof/$(LIBTEST) $(DESTDIR)$(LIBPATH)
|
install -m 644 testprof/$(LIBTEST) $(DESTDIR)$(LIBPATH)
|
||||||
|
|
||||||
profile:
|
profile:
|
||||||
CFLAGS="$(CFLAGS) -fprofile-generate" $(MAKE) timing EXTRALIBS="$(EXTRALIBS) -lgcov"
|
CFLAGS="$(CFLAGS) -fprofile-generate" $(MAKE) timing EXTRALIBS="$(EXTRALIBS) -lgcov"
|
||||||
|
@ -210,18 +210,18 @@ $(LIBNAME): $(OBJECTS)
|
|||||||
$(LT) --mode=link --tag=CC $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) `find ./src -type f -name "*.lo"` $(EXTRALIBS) -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION) -release $(RELEASE)
|
$(LT) --mode=link --tag=CC $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) `find ./src -type f -name "*.lo"` $(EXTRALIBS) -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION) -release $(RELEASE)
|
||||||
|
|
||||||
install: $(LIBNAME)
|
install: $(LIBNAME)
|
||||||
install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
|
install -d $(DESTDIR)$(LIBPATH)
|
||||||
$(LT) --mode=install install -c libtomcrypt.la $(DESTDIR)$(LIBPATH)/libtomcrypt.la
|
$(LT) --mode=install install -c libtomcrypt.la $(DESTDIR)$(LIBPATH)/libtomcrypt.la
|
||||||
install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
|
install -d $(DESTDIR)$(INCPATH)
|
||||||
install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)
|
install -m 644 $(HEADERS) $(DESTDIR)$(INCPATH)
|
||||||
install -d $(DESTDIR)$(LIBPATH)/pkgconfig
|
install -d $(DESTDIR)$(LIBPATH)/pkgconfig
|
||||||
sed 's,@LIBDIR@,$(LIBPATH),g' libtomcrypt.pc.in > libtomcrypt.pc
|
sed 's,@LIBDIR@,$(LIBPATH),g' libtomcrypt.pc.in > libtomcrypt.pc
|
||||||
install -m 0644 -g $(GROUP) -o $(USER) libtomcrypt.pc $(DESTDIR)$(LIBPATH)/pkgconfig/libtomcrypt.pc
|
install -m 644 libtomcrypt.pc $(DESTDIR)$(LIBPATH)/pkgconfig/libtomcrypt.pc
|
||||||
|
|
||||||
install_test: testprof/$(LIBTEST)
|
install_test: testprof/$(LIBTEST)
|
||||||
install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
|
install -d $(DESTDIR)$(LIBPATH)
|
||||||
install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
|
install -d $(DESTDIR)$(INCPATH)
|
||||||
cd testprof ; CFLAGS="$(CFLAGS)" GROUP=$(GROUP) USER=$(USER) VERSION=$(VERSION) LIBPATH=$(LIBPATH) LIBTEST=$(LIBTEST) LIBTEST_S=$(LIBTEST_S) DESTDIR=$(DESTDIR) LT=$(LT) CC=$(CC) make -f makefile.shared install
|
cd testprof ; CFLAGS="$(CFLAGS)" VERSION=$(VERSION) LIBPATH=$(LIBPATH) LIBTEST=$(LIBTEST) LIBTEST_S=$(LIBTEST_S) DESTDIR=$(DESTDIR) LT=$(LT) CC=$(CC) make -f makefile.shared install
|
||||||
|
|
||||||
#This rule makes the hash program included with libtomcrypt
|
#This rule makes the hash program included with libtomcrypt
|
||||||
hashsum: library $(HASHOBJECTS)
|
hashsum: library $(HASHOBJECTS)
|
||||||
|
Loading…
Reference in New Issue
Block a user