mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2025-12-06 03:26:45 +03:00
Do not do make in make install
Old behavior leads to permission errors on multiple rebuilds
This commit is contained in:
@@ -109,7 +109,10 @@ $(BUILD_DIR)/test/%.o: test/%.c $(REQ) $(INCLUDE_DIR)/config.h
|
|||||||
@echo 'CC $@'
|
@echo 'CC $@'
|
||||||
$(CC) -c $(CFLAGS) $(LDFLAGS) $(TEST_CFLAGS) $< -o $@
|
$(CC) -c $(CFLAGS) $(LDFLAGS) $(TEST_CFLAGS) $< -o $@
|
||||||
|
|
||||||
install: all
|
install:
|
||||||
|
ifeq (,$(wildcard $(APP)))
|
||||||
|
$(error Make the binary first)
|
||||||
|
endif
|
||||||
install -d $(DESTDIR)$(PREFIX)/bin/
|
install -d $(DESTDIR)$(PREFIX)/bin/
|
||||||
install -m 755 $(APP) $(DESTDIR)$(PREFIX)/bin/
|
install -m 755 $(APP) $(DESTDIR)$(PREFIX)/bin/
|
||||||
install -d $(DESTDIR)$(PREFIX)/lib/systemd/system/
|
install -d $(DESTDIR)$(PREFIX)/lib/systemd/system/
|
||||||
|
|||||||
Reference in New Issue
Block a user