Blame Makefile

Alain Reguera Delgado 2fcc87
NAME=tcar
Alain Reguera Delgado 2fcc87
DATADIR=/usr/share
Alain Reguera Delgado 2fcc87
BINDIR=/usr/bin
Alain Reguera Delgado 2fcc87
Alain Reguera Delgado 2fcc87
install:
Alain Reguera Delgado 2fcc87
	for i in scripts brushes fonts palettes;do \
Alain Reguera Delgado f2a3c7
        DIRNAME=$$(echo $$i | sed -r "s/($$i)/\u\1/"); \
Alain Reguera Delgado f2a3c7
		mkdir -p ${DESTDIR}${DATADIR}/${NAME}/$$DIRNAME; \
Alain Reguera Delgado f2a3c7
	    cp -rp ${NAME}-$$i/* ${DESTDIR}${DATADIR}/${NAME}/$$DIRNAME/; \
Alain Reguera Delgado 2fcc87
	done; \
Alain Reguera Delgado 2fcc87
	mkdir -p ${DESTDIR}${BINDIR}; \
Alain Reguera Delgado f2a3c7
	ln -s ${DATADIR}/${NAME}/Scripts/${NAME}.sh ${DESTDIR}${BINDIR}/${NAME}; \
Alain Reguera Delgado 2fcc87
	for i in hello prepare render locale tuneup;do \
Alain Reguera Delgado f2a3c7
        DIRNAME=$$(echo $$i | sed -r "s/($$i)/\u\1/"); \
Alain Reguera Delgado f2a3c7
		mkdir -p ${DESTDIR}${DATADIR}/${NAME}/Scripts/Modules/$$DIRNAME; \
Alain Reguera Delgado f2a3c7
		cp -rp ${NAME}-scripts-$$i/* ${DESTDIR}${DATADIR}/${NAME}/Scripts/Modules/$$DIRNAME/; \
Alain Reguera Delgado 2fcc87
	done; \
Alain Reguera Delgado 2fcc87
	for i in brands dist docs icons promo webenv;do \
Alain Reguera Delgado f2a3c7
        DIRNAME=$$(echo $$i | sed -r "s/($$i)/\u\1/"); \
Alain Reguera Delgado f2a3c7
	    mkdir -p ${DESTDIR}${DATADIR}/${NAME}/Models/$$DIRNAME ; \
Alain Reguera Delgado f2a3c7
	    cp -rp ${NAME}-models-$$i/* ${DESTDIR}${DATADIR}/${NAME}/Models/$$DIRNAME/ ;\
Alain Reguera Delgado 2fcc87
	done;