Brauche Hilfe bei makefile

Lothar Behrens <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
Hallo,

das folgende configure script (ein Wrapper für rpmbuild) erstellt ein 
makefile, das als Wrapper fungieren
soll. Dies funktioniert auch bis zu dem Teil, wo rpmbuild ein make 
install-strip ausführen will.

#!/bin/sh

echo all: Projects/CPP/BaseDevelopment > makefile
echo \# >> makefile

echo DEVROOT=`pwd` >> makefile

echo dummy: >> makefile
echo \ >> makefile
echo Projects/CPP/BaseDevelopment: dummy >> makefile
echo \	\$\(MAKE\) -s -C \$\@ -e RPMBUILD=yes -e DEVROOT=\$\(DEVROOT\) 
 >> makefile

Ich würde das so weiterreichen:

echo make-strip:
echo \	\$\(MAKE\) -s -C \$\@ -e RPMBUILD=yes -e DEVROOT=\$\(DEVROOT\) 
make-strip >> makefile

Wie sieht nun ein make strip target aus ?

Vor allem wenn mein Makefile so aussieht:

ifeq ($(OSTYPE), linux)
BASEDIRECTORIES= \
	../Plugins \
	../Modules \
	../RegressionTests
endif

ifeq ($(OSTYPE), linux)

TARGETDLL=so
TARGETFRAMEWORK=so


ALLTARGETS = \
	lbHook \
	lbDB \
	$(BASEDIRECTORIES)
endif

../Plugins: dummy
	$(MAKE) -s -C $@

../Modules: dummy
	$(MAKE) -s -C $@

../RegressionTests: dummy
	$(MAKE) -s -C $@

lbHook: dummy
	$(MAKE) -s -C $@ -e MODULE=$@ -e TARGET=$(TARGETFRAMEWORK) -f 
$(MAKE_CONFIG_FILE)
	$(MAKE) -s -C $@

lbDB: dummy
	$(MAKE) -s -C $@ -e MODULE=$@ -e TARGET=$(TARGETDLL) -f 
$(MAKE_CONFIG_FILE)
	$(MAKE) -s -C $@

Es sollte nicht für jedes Target ein extra install-strip erstellt 
werden.

Ich hoffe, jemand kann mir helfen.

Danke, Lothar

--
Lothar Behrens	|	Rapid Prototyping ...
Rosmarinstr 3		|	
40235 Düsseldorf  	|	www.lollisoft.de


-- 
Um die Liste abzubestellen, schicken Sie eine Mail an:
    [email protected]
Um eine Liste aller verfügbaren Kommandos zu bekommen, schicken
Sie eine Mail an: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.