X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..34ef822e81b9f236b2f5edf52d351a0f82d59a0c:/projects/stargazer/plugins/Makefile.in

diff --git a/projects/stargazer/plugins/Makefile.in b/projects/stargazer/plugins/Makefile.in
index 90411bd4..23ff1eb9 100644
--- a/projects/stargazer/plugins/Makefile.in
+++ b/projects/stargazer/plugins/Makefile.in
@@ -16,14 +16,14 @@ vpath %.so $(DIR_LIB)
 all: $(PROG)
 
 $(PROG): $(OBJS) $(STGLIBS)
-	$(CC) $^ $(LDFLAGS) $(LIBS) -o $(PROG)
+	$(CXX) $^ $(LDFLAGS) $(LIBS) -o $(PROG)
 	$(LN) -fs "`pwd`/$(PROG)" $(DIR_MOD)/$(PROG)
 
 clean:
 	rm -f deps $(PROG) *.o tags *.*~
 
-install:
-	mkdir -m $(BIN_MODE) -p $(PREFIX)/usr/lib/stg
+install: $(PROG)
+	mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/lib/stg
 	install -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/stg/$(PROG)
 
 uninstall: