toolbox/Makefile
2024-11-07 22:23:49 +01:00

36 lines
1.0 KiB
Makefile

.PHONY: all
all: gcd/bin/gcd format_bytes/bin/format_bytes format_time/bin/format_time format_time/bin/format_time_ns
format_time/bin/format_time:
@cd format_time && exec make -s
format_time/bin/format_time_ns:
@cd format_time && exec make -s
format_bytes/bin/format_bytes:
@cd format_bytes && exec make -s
gcd/bin/gcd:
@cd gcd && exec make -s
.PHONY: install
install: gcd/bin/gcd format_bytes/bin/format_bytes format_time/bin/format_time format_time/bin/format_time_ns
@cp -v compress convertUTF8 extract $^ /usr/bin
@cd /usr/bin && chmod -v u+x compress convertUTF8 extract gcd format_bytes format_time format_time_ns
.PHONY: uninstall
uninstall:
@cd /usr/bin && rm -v compress convertUTF8 extract gcd format_bytes format_time format_time_ns
.PHONY: clean
clean:
@(cd gcd && exec make -s clean)
@(cd format_bytes && exec make -s clean)
@(cd format_time && exec make -s clean)
.PHONY: mrproper
mrproper: clean
@(cd gcd && exec make -s mrproper)
@(cd format_bytes && exec make -s mrproper)
@(cd format_time && exec make -s mrproper)