Commit 04de523b authored by Natanael Copa's avatar Natanael Copa

added uniso

A tool for extracting files from iso images frrom a stream.

Will be used for setup-bootable.
parent 40e4d11f
...@@ -26,9 +26,12 @@ SBIN_FILES := lbu\ ...@@ -26,9 +26,12 @@ SBIN_FILES := lbu\
setup-timezone\ setup-timezone\
update-conf update-conf
BIN_FILES := uniso
SCRIPTS := $(LIB_FILES) $(SBIN_FILES) SCRIPTS := $(LIB_FILES) $(SBIN_FILES)
SCRIPT_SOURCES := $(addsuffix .in,$(SCRIPTS)) SCRIPT_SOURCES := $(addsuffix .in,$(SCRIPTS))
ETC_LBU_FILES := lbu.conf ETC_LBU_FILES := lbu.conf
EXTRA_DIST := Makefile README EXTRA_DIST := Makefile README
DIST_FILES := $(SCRIPT_SOURCES) $(ETC_LBU_FILES) $(EXTRA_DIST) DIST_FILES := $(SCRIPT_SOURCES) $(ETC_LBU_FILES) $(EXTRA_DIST)
...@@ -61,7 +64,10 @@ SED_REPLACE := -e 's:@VERSION@:$(FULL_VERSION):g' \ ...@@ -61,7 +64,10 @@ SED_REPLACE := -e 's:@VERSION@:$(FULL_VERSION):g' \
${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@ ${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@
.PHONY: all apk clean dist install uninstall .PHONY: all apk clean dist install uninstall
all: $(SCRIPTS) all: $(SCRIPTS) $(BIN_FILES)
uniso: uniso.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
apk: $(APKF) apk: $(APKF)
...@@ -75,7 +81,9 @@ $(TARBZ2): $(DIST_FILES) ...@@ -75,7 +81,9 @@ $(TARBZ2): $(DIST_FILES)
$(TAR) -cjf $@ $(TMP) $(TAR) -cjf $@ $(TMP)
rm -rf $(TMP) rm -rf $(TMP)
install: install: $(BIN_FILES) $(SBIN_FILES) $(LIB_FILES) $(ETC_LBU_FILES)
install -m 755 -d $(DESTDIR)/$(PREFIX)/bin
install -m 755 $(BIN_FILES) $(DESTDIR)$(PREFIX)/bin
install -m 755 -d $(DESTDIR)/$(PREFIX)/sbin install -m 755 -d $(DESTDIR)/$(PREFIX)/sbin
install -m 755 $(SBIN_FILES) $(DESTDIR)/$(PREFIX)/sbin install -m 755 $(SBIN_FILES) $(DESTDIR)/$(PREFIX)/sbin
install -m 755 -d $(DESTDIR)/$(PREFIX)/lib install -m 755 -d $(DESTDIR)/$(PREFIX)/lib
...@@ -92,5 +100,5 @@ uninstall: ...@@ -92,5 +100,5 @@ uninstall:
done done
clean: clean:
rm -rf $(SCRIPTS) $(TMP) $(TARBZ2) rm -rf $(SCRIPTS) $(BIN_FILES) $(TMP) $(TARBZ2)
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment