X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/1adb53e896797c73b5528ee178bd73ff51be2c43..da585bb94c437f06762a2042ef4c52166b8aafce:/stglibs/Makefile.in diff --git a/stglibs/Makefile.in b/stglibs/Makefile.in index b5d1195c..a378f489 100644 --- a/stglibs/Makefile.in +++ b/stglibs/Makefile.in @@ -28,17 +28,19 @@ CFLAGS += -fPIC $(SEARCH_DIRS) $(DEFS) all: $(PROG) $(PROG): $(OBJS) - ar rc lib$(LIB_NAME).a $(OBJS) - ranlib lib$(LIB_NAME).a + $(AR) rc lib$(LIB_NAME).a $(OBJS) + $(RANLIB) lib$(LIB_NAME).a clean: - rm -f deps $(PROG) *.o *.a *.so tags *.*~ + rm -f deps $(PROG) *.o *.a *.so tags *.*~ install: $(PROG) ifeq ($(DEBUG), yes) - install -D -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/lib/stg/$(PROG) + mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/lib/stg + install -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/lib/stg/$(PROG) else - install -D -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/stg/$(PROG) + mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/lib/stg + install -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/stg/$(PROG) endif mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/include/stg install -m $(DATA_MODE) -o $(OWNER) $(addprefix include/stg/,$(INCS)) $(PREFIX)/usr/include/stg/